#include <iostream>
using namespace std;

void print_divisors(int n) {
for (int i = 1; i <= n; i++)
if (n % i == 0) cout << i << " ";
}

bool is_prime(int n) {  
    if (n <= 1)  
        return false;  
    if (n == 2)  
        return true;  

    for (int i = 2; i <= n / 2; ++i)  
       
        if(n % i == 0)  
            return false;

    return true;
}  

int main() {
int n;
cout << "Enter an integer: ";
cin >> n;
print_divisors(n);
return 0;
}
